package com.jeeinc.oa.utils;

import javax.servlet.http.HttpSession;

public class AccountUtils {
	public static final String ACCOUNT_AUTH_NAME = "ACCOUNT_AUTH_NAME";

	public static void setAccount(HttpSession session, Object obj) {
		session.setAttribute("title", "协信集团门户");
		session.setAttribute(ACCOUNT_AUTH_NAME, obj);
	}

	public static Object getAccount(HttpSession session) {
		return session.getAttribute(ACCOUNT_AUTH_NAME);
	}

	public static Object getProperty(HttpSession session, String key) {
		return session.getAttribute(ACCOUNT_AUTH_NAME);
	}
}
